<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="/resource/UserPwoer.tld" prefix="p"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	pageContext.setAttribute("userPwoer", request.getSession().getAttribute("userPwoer"));
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<c:if test="${user ne null }" >

<header data-am-widget="header" class="am-header back-y">
		<div class="am-header-left am-header-nav">
			<a href="${path }/index" class=""> <img
				src="${path }/resource/images/logo.png">
			</a>
		</div>
		<div class="am-header-right am-header-nav">
			<a href="${path }/customer/redirect/house-class"> <span class="am-header-nav-title color-w"> &nbsp;发布
			</span> <i class="am-header-icon am-icon-external-link color-w"></i>
			</a> <span class="color-w">&nbsp;|&nbsp;</span> <a href="${path }/customer/redirect/personal"> <span
				class="am-header-nav-title color-w"> 我的 </span> <i
				class="am-header-icon am-icon-user color-w"></i>
			</a>
		</div>
	</header>

</c:if>
<c:if test="${user eq null }" >

<header data-am-widget="header" class="am-header back-y">
		<div class="am-header-left am-header-nav">
			<a href="${path }/index" class=""> <img
				src="${path }/resource/images/logo.png">
			</a>
		</div>
		<div class="am-header-right am-header-nav">
			<a href="${path }/visitor/redirect/login" class="color-w"> <span class="am-icon-user am-icon-sm color-w"></span>&nbsp;登&nbsp;录</a>
		</div>
	</header>
</c:if>